package com.ikingtech.platform.service.system.label.service;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ikingtech.platform.service.system.label.entity.LabelAssignDO;
import com.ikingtech.platform.service.system.label.mapper.LabelAssignMapper;
import org.springframework.stereotype.Service;

/**
 * @author tie yan
 */
@Service
public class LabelAssignRepository extends ServiceImpl<LabelAssignMapper, LabelAssignDO> {

    public void removeByBusinessId(String businessId) {
        this.remove(Wrappers.<LabelAssignDO>lambdaQuery().eq(LabelAssignDO::getBusinessId, businessId));
    }
}
